'use strict';
const path = require('path');
const fs = require('fs');
const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index(ctx) {
    ctx.body = await fs.readFileSync(path.join(__dirname, '../../public/admin.html'), 'utf8');
  }

}

module.exports = HomeController;
